﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="EventLogger.Web.Views.Home.Index" %>

<asp:Content ID="indexTitle" ContentPlaceHolderID="TitleContent" runat="server">
    Home Page
</asp:Content>
<asp:Content ID="indexContent" ContentPlaceHolderID="MainContent" runat="server">
    <h2>Event Logger</h2>
    <p>
        Browse by event</p>
    <ul>
        <%foreach (var e in Events)
          { %>
        <li>
            <%=Html.ActionLink<BrowseController>(e.Name, c => c.Event(e.Id, null))%></li>
        <%} %>
    </ul>
    <p>
        Browse by user</p>
    <ul>
        <%foreach (var u in Users)
          { %>
        <li>
            <%=Html.ActionLink<BrowseController>(u, c => c.User(u, null))%></li>
        <%} %>
    </ul>
    <p>
        Browse by computer</p>
    <ul>
        <%foreach (var cmp in Computers)
          { %>
        <li>
            <%=Html.ActionLink<BrowseController>(cmp, c => c.Computer(cmp, null))%></li>
        <%} %>
    </ul>
</asp:Content>
